<!DOCTYPE html>
<html><head>
    <meta charset="utf-8">
    <title>{include file="common/title"}</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__DATA__/admin/style/bootstrap.css" rel="stylesheet">
    <link href="__DATA__/admin/style/font-awesome.css" rel="stylesheet">
    <link href="__DATA__/admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__DATA__/admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__DATA__/admin/style/demo.css" rel="stylesheet">
    <link href="__DATA__/admin/style/typicons.css" rel="stylesheet">
    <link href="__DATA__/admin/style/animate.css" rel="stylesheet">
    <!--富文本编辑器-->
    <!-- 配置文件 -->
    <script type="text/javascript" src="__DATA__/static/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__DATA__/static/ueditor/ueditor.all.js"></script>
    <link rel="stylesheet" type="text/css" href="__DATA__/static/ueditor/themes/default/css/ueditor.min.css" />
    <!--jq下拉框-->
    <script src="__DATA__/static/select/js/modernizr.min.js"></script>
</head>
<body>
<!-- 头部 -->
{include file="common/top"}
<!-- /头部 -->

<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Sidebar -->
        {include file="common/left"}
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <a href="{:url('business/duanxin/index')}">短信接口</a>
                    </li>
                    <li class="active">短信配置</li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">

                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">短信设置</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="{:url('business/duanxin/update')}" method="post" enctype="multipart/form-data">


                                        <div class="form-group">
                                            <label for="menu_order" class="col-sm-2 control-label no-padding-right">接收短信的手机号码</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" value="{$data.dxphone}" id="menu_order" placeholder="" name="dxphone" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>

                                          <div class="form-group">
                                            <label for="menu_order" class="col-sm-2 control-label no-padding-right">短信签名</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" value="{$data.dxsginName}" id="menu_order" placeholder="" name="dxsginName" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                        <div class="form-group">
                                            <label for="menu_order" class="col-sm-2 control-label no-padding-right">短信模板Code</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" value="{$data.dxTemplateCode}" id="menu_order" placeholder="" name="dxTemplateCode" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>

                                         <div class="form-group">
                                            <label for="menu_order" class="col-sm-2 control-label no-padding-right">Key_Id</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" value="{$data.dxaccessKeyId}" id="menu_order" placeholder="" name="dxaccessKeyId" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                         <div class="form-group">
                                            <label for="menu_order" class="col-sm-2 control-label no-padding-right">Key_Secret</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" value="{$data.dxaccessKeySecret}" id="menu_order" placeholder="" name="dxaccessKeySecret" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                        <div class="form-group">
                                            <label for="menu_sign" class="col-sm-2 control-label no-padding-right">是否启用</label>
                                            <div class="col-sm-6">
                                                <select id="e3" style="width:100%;" name="duanxin">

                                                    {eq name="$data.duanxin" value="1"}
                                                     <option selected="selected" value="1" />是
                                                    {else /}
                                                    <option  value="1" />是
                                                    {/eq}


                                                    {eq name="$data.duanxin" value="0"}
                                                     <option selected="selected" value="0" />否
                                                    {else /}
                                                    <option  value="0" />否
                                                    {/eq}


                                                </select>
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>


                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-default">提交</button>
                                                <button style="margin-left: 20px" onclick="history.go(-1)" class="btn btn-info">返回</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
</div>

<script language="JavaScript" type="text/javascript">
    function clearNoNum(obj){
        obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数
        if(obj.value.indexOf(".")< 0 && obj.value !=""){//以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额
            obj.value= parseFloat(obj.value);
        }
    }
</script>
<!--Basic Scripts-->
<script src="__DATA__/admin/style/jquery_002.js"></script>
<script src="__DATA__/admin/style/bootstrap.js"></script>
<script src="__DATA__/admin/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__DATA__/admin/style/beyond.js"></script>
<!--下拉框设置-->
<script src="__DATA__/static/select/js/jquery-1.11.3.min.js"></script>
<script src="__DATA__/static/select/js/bootstrap.min.js"></script>
<script src="__DATA__/static/select/js/vendor/tabcomplete.min.js"></script>
<script src="__DATA__/static/select/js/vendor/livefilter.min.js"></script>
<script src="__DATA__/static/select/js/vendor/src/bootstrap-select.js"></script>
<script src="__DATA__/static/select/js/vendor/src/filterlist.js"></script>
<script src="__DATA__/static/select/js/plugins.js"></script>
<script>
    $(function(){
        $('.xitong').css('display','block');
    });
</script>
</body></html>